package com.zdy.service;

import com.zdy.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 逸足天涯
 * on 3/13/2020.
 */
public interface BookService {
    //增加一本书
    int addbook(Books books);
    //删除一本书
    int deleteBookById(int id);
    //更新一本书
    int updateBooks(Books books);
    //查询全部书
    List<Books> queryAllBooks();

    Books queryOneBookById( int id);

    Books queryBookByName(String  bookName);
}
